using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace UTLBASEFORM
{
    public partial class MDIDIALOG2 : DevComponents.DotNetBar.Office2007Form
    {
        public MDIDIALOG2()
        {
            InitializeComponent();
            btn1.Click += new EventHandler(btn1_Click);
            btn2.Click += new EventHandler(btn2_Click);
            btn3.Click += new EventHandler(btn3_Click);
            btn4.Click += new EventHandler(btn4_Click);
            btn5.Click += new EventHandler(btn5_Click);

            tbtn1.Click += new EventHandler(tbtn1_Click);
            tbtn2.Click += new EventHandler(tbtn2_Click);
            tbtn3.Click += new EventHandler(tbtn3_Click);
            tbtn4.Click += new EventHandler(tbtn4_Click);
            tbtn5.Click += new EventHandler(tbtn5_Click);
            tbtn6.Click += new EventHandler(tbtn6_Click);
            tbtn7.Click += new EventHandler(tbtn7_Click);
            tbtn8.Click += new EventHandler(tbtn8_Click);
            tbtn9.Click += new EventHandler(tbtn9_Click);
            tbtn10.Click += new EventHandler(tbtn10_Click);
        }

        #region BTN1 Define
        /// <summary>
        /// BTN1 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param> 
        protected virtual void btn1_Click(object sender, EventArgs e)
        {
        }
        /// <summary>
        /// BTN1 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowBTN1(string textlabel, string imgname)
        {
            this.btn1.Visible = true;
            this.btn1.Text = textlabel;
            this.btn1.Image = MDICHILD.getImage(imgname);
            this.btn1.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
            this.btn1.Tooltip = textlabel;
        }
        /// <summary>
        /// BTN1 Hide.
        /// </summary>
        public void HideBTN1()
        {
            this.btn1.Visible = false;
        }
        /// <summary>
        /// BTN1 Enable.
        /// </summary>
        public void EnableBTN1()
        {
            this.btn1.Enabled = true;
        }
        /// <summary>
        /// BTN1 Disable.
        /// </summary>
        public void DisableBTN1()
        {
            this.btn1.Enabled = false;
        }
        #endregion
        #region BTN2 Define
        /// <summary>
        /// BTN2 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param> 
        protected virtual void btn2_Click(object sender, EventArgs e)
        {
        }
        /// <summary>
        /// BTN2 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowBTN2(string textlabel, string imgname)
        {
            this.btn2.Visible = true;
            this.btn2.Text = textlabel;
            this.btn2.Image = MDICHILD.getImage(imgname);
            this.btn2.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
            this.btn2.Tooltip = textlabel;
        }
        /// <summary>
        /// BTN2 Hide.
        /// </summary>
        public void HideBTN2()
        {
            this.btn2.Visible = false;
        }
        /// <summary>
        /// BTN2 Enable.
        /// </summary>
        public void EnableBTN2()
        {
            this.btn2.Enabled = true;
        }
        /// <summary>
        /// BTN2 Disable.
        /// </summary>
        public void DisableBTN2()
        {
            this.btn2.Enabled = false;
        }
        #endregion
        #region BTN3 Define
        /// <summary>
        /// BTN3 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param> 
        protected virtual void btn3_Click(object sender, EventArgs e)
        {
        }
        /// <summary>
        /// BTN3 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowBTN3(string textlabel, string imgname)
        {
            this.btn3.Visible = true;
            this.btn3.Text = textlabel;
            this.btn3.Image = MDICHILD.getImage(imgname);
            this.btn3.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
            this.btn3.Tooltip = textlabel;
        }
        /// <summary>
        /// BTN3 Hide.
        /// </summary>
        public void HideBTN3()
        {
            this.btn3.Visible = false;
        }
        /// <summary>
        /// BTN3 Enable.
        /// </summary>
        public void EnableBTN3()
        {
            this.btn3.Enabled = true;
        }
        /// <summary>
        /// BTN3 Disable.
        /// </summary>
        public void DisableBTN3()
        {
            this.btn3.Enabled = false;
        }
        #endregion
        #region BTN4 Define
        /// <summary>
        /// BTN4 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param> 
        protected virtual void btn4_Click(object sender, EventArgs e)
        {
        }
        /// <summary>
        /// BTN4 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowBTN4(string textlabel, string imgname)
        {
            this.btn4.Visible = true;
            this.btn4.Text = textlabel;
            this.btn4.Image = MDICHILD.getImage(imgname);
            this.btn4.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
            this.btn4.Tooltip = textlabel;
        }
        /// <summary>
        /// BTN4 Hide.
        /// </summary>
        public void HideBTN4()
        {
            this.btn4.Visible = false;
        }
        /// <summary>
        /// BTN4 Enable.
        /// </summary>
        public void EnableBTN4()
        {
            this.btn4.Enabled = true;
        }
        /// <summary>
        /// BTN4 Disable.
        /// </summary>
        public void DisableBTN4()
        {
            this.btn4.Enabled = false;
        }
        #endregion
        #region BTN5 Define
        /// <summary>
        /// BTN5 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param> 
        protected virtual void btn5_Click(object sender, EventArgs e)
        {
        }
        /// <summary>
        /// BTN5 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowBTN5(string textlabel, string imgname)
        {
            this.btn5.Visible = true;
            this.btn5.Text = textlabel;
            this.btn5.Image = MDICHILD.getImage(imgname);
            this.btn5.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top;
            this.btn5.Tooltip = textlabel;
        }
        /// <summary>
        /// BTN5 Hide.
        /// </summary>
        public void HideBTN5()
        {
            this.btn5.Visible = false;
        }
        /// <summary>
        /// BTN5 Enable.
        /// </summary>
        public void EnableBTN5()
        {
            this.btn5.Enabled = true;
        }
        /// <summary>
        /// BTN5 Disable.
        /// </summary>
        public void DisableBTN5()
        {
            this.btn5.Enabled = false;
        }
        #endregion


        #region tBTN1 Define
        /// <summary>
        /// BTN 1 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param> 
        protected virtual void tbtn1_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 1 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN1(string textlabel, string imgname)
        {
            this.tbtn1.Visible = true;
            this.tbtn1.Text = textlabel;
            //Bitmap temp = new Bitmap(Image.FromHbitmap(global::UTLBASEFORM.Properties.Resources.Check_Ok.GetHbitmap()));

            //temp.MakeTransparent(temp.GetPixel(0, 0));
            this.tbtn1.Image = MDICHILD.getImage(imgname);//(Image)temp;
            this.tbtn1.Tooltip = textlabel.Replace("&", "");
            //this.btn1.Tooltip = textlabel.Replace("&","");

        }
        /// <summary>
        /// BTN 1 Hide.
        /// </summary>
        public void HideTBTN1()
        {
            this.tbtn1.Visible = false;
        }
        /// <summary>
        /// BTN 1 Enable.
        /// </summary>
        public void EnableTBTN1()
        {
            this.tbtn1.Enabled = true;
        }
        /// <summary>
        /// BTN 1 Disable.
        /// </summary>
        public void DisableTBTN1()
        {
            this.tbtn1.Enabled = false;
        }
        #endregion
        #region BTN2 Define
        /// <summary>
        /// BTN 2 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn2_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 2 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN2(string textlabel, string imgname)
        {
            this.tbtn2.Visible = true;
            this.tbtn2.Text = textlabel;
            this.tbtn2.Image = MDICHILD.getImage(imgname);
            this.tbtn2.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 2 Hide.
        /// </summary>        
        public void HideTBTN2()
        {
            this.tbtn2.Visible = false;
        }
        /// <summary>
        /// BTN 2 Enable.
        /// </summary>
        public void EnableTBTN2()
        {
            this.tbtn2.Enabled = true;
        }
        /// <summary>
        /// BTN 2 Disable.
        /// </summary>
        public void DisableTBTN2()
        {
            this.tbtn2.Enabled = false;
        }
        #endregion
        #region BTN3 Define
        /// <summary>
        /// BTN 3 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn3_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 3 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN3(string textlabel, string imgname)
        {
            this.tbtn3.Visible = true;
            this.tbtn3.Text = textlabel;
            this.tbtn3.Image = MDICHILD.getImage(imgname);
            this.tbtn3.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 3 Hide.
        /// </summary>        
        public void HideTBTN3()
        {
            this.tbtn3.Visible = false;
        }
        /// <summary>
        /// BTN 3 Enable.
        /// </summary>
        public void EnableTBTN3()
        {
            this.tbtn3.Enabled = true;
        }
        /// <summary>
        /// BTN 3 Disable.
        /// </summary>
        public void DisableTBTN3()
        {
            this.tbtn3.Enabled = false;
        }
        #endregion
        #region BTN4 Define
        /// <summary>
        /// BTN 4 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn4_Click(object sender, EventArgs e)
        {
            
        }
        /// <summary>
        /// BTN 4 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN4(string textlabel, string imgname)
        {
            this.tbtn4.Visible = true;
            this.tbtn4.Text = textlabel;
            this.tbtn4.Image = MDICHILD.getImage(imgname);
            this.tbtn4.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 4 Hide.
        /// </summary>        
        public void HideTBTN4()
        {
            this.tbtn4.Visible = false;
        }
        /// <summary>
        /// BTN 4 Enable.
        /// </summary>
        public void EnableTBTN4()
        {
            this.tbtn4.Enabled = true;
        }
        /// <summary>
        /// BTN 4 Disable.
        /// </summary>
        public void DisableTBTN4()
        {
            this.tbtn4.Enabled = false;
        }
        #endregion
        #region BTN5 Define
        /// <summary>
        /// BTN 5 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn5_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 5 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN5(string textlabel, string imgname)
        {
            this.tbtn5.Visible = true;
            this.tbtn5.Text = textlabel;
            this.tbtn5.Image = MDICHILD.getImage(imgname);
            this.tbtn5.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 5 Hide.
        /// </summary>        
        public void HideTBTN5()
        {
            this.tbtn5.Visible = false;
        }
        /// <summary>
        /// BTN 5 Enable.
        /// </summary>
        public void EnableTBTN5()
        {
            this.tbtn5.Enabled = true;
        }
        /// <summary>
        /// BTN 5 Disable.
        /// </summary>
        public void DisableTBTN5()
        {
            this.tbtn5.Enabled = false;
        }
        #endregion
        #region BTN6 Define
        /// <summary>
        /// BTN 6 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn6_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 6 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN6(string textlabel, string imgname)
        {
            this.tbtn6.Visible = true;
            this.tbtn6.Text = textlabel;
            this.tbtn6.Image = MDICHILD.getImage(imgname);
            this.tbtn6.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 6 Hide.
        /// </summary>        
        public void HideTBTN6()
        {
            this.tbtn6.Visible = false;
        }
        /// <summary>
        /// BTN 6 Enable.
        /// </summary>
        public void EnableTBTN6()
        {
            this.tbtn6.Enabled = true;
        }
        /// <summary>
        /// BTN 6 Disable.
        /// </summary>
        public void DisableTBTN6()
        {
            this.tbtn6.Enabled = false;
        }
        #endregion
        #region BTN7 Define
        /// <summary>
        /// BTN 7 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn7_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 7 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN7(string textlabel, string imgname)
        {
            this.tbtn7.Visible = true;
            this.tbtn7.Text = textlabel;
            this.tbtn7.Image = MDICHILD.getImage(imgname);
            this.tbtn7.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 7 Hide.
        /// </summary>        
        public void HideTBTN7()
        {
            this.tbtn7.Visible = false;
        }
        /// <summary>
        /// BTN 7 Enable.
        /// </summary>
        public void EnableTBTN7()
        {
            this.tbtn7.Enabled = true;
        }
        /// <summary>
        /// BTN 7 Disable.
        /// </summary>
        public void DisableTBTN7()
        {
            this.tbtn7.Enabled = false;
        }
        #endregion
        #region BTN8 Define
        /// <summary>
        /// BTN 8 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn8_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 8 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN8(string textlabel, string imgname)
        {
            this.tbtn8.Visible = true;
            this.tbtn8.Text = textlabel;
            this.tbtn8.Image = MDICHILD.getImage(imgname);
            this.tbtn8.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 8 Hide.
        /// </summary>        
        public void HideTBTN8()
        {
            this.tbtn8.Visible = false;
        }
        /// <summary>
        /// BTN 8 Enable.
        /// </summary>
        public void EnableTBTN8()
        {
            this.tbtn8.Enabled = true;
        }
        /// <summary>
        /// BTN 8 Disable.
        /// </summary>
        public void DisableTBTN8()
        {
            this.tbtn8.Enabled = false;
        }
        #endregion
        #region BTN9 Define
        /// <summary>
        /// BTN 9 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn9_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 9 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN9(string textlabel, string imgname)
        {
            this.tbtn9.Visible = true;
            this.tbtn9.Text = textlabel;
            this.tbtn9.Image = MDICHILD.getImage(imgname);
            this.tbtn9.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 9 Hide.
        /// </summary>        
        public void HideTBTN9()
        {
            this.tbtn9.Visible = false;
        }
        /// <summary>
        /// BTN 9 Enable.
        /// </summary>
        public void EnableTBTN9()
        {
            this.tbtn9.Enabled = true;
        }
        /// <summary>
        /// BTN 9 Disable.
        /// </summary>
        public void DisableTBTN9()
        {
            this.tbtn9.Enabled = false;
        }
        #endregion
        #region TBTN10 Define
        /// <summary>
        /// BTN 10 Click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>        
        protected virtual void tbtn10_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// BTN 10 Show.
        /// </summary>
        /// <param name="textlabel">Lable to show to screen of the button</param>
        ///<param name="imgname">Image name to show</param>
        public void ShowTBTN10(string textlabel, string imgname)
        {
            this.tbtn10.Visible = true;
            this.tbtn10.Text = textlabel;
            this.tbtn10.Image = MDICHILD.getImage(imgname);
            this.tbtn10.Tooltip = textlabel.Replace("&", "");
        }
        /// <summary>
        /// BTN 10 Hide.
        /// </summary>        
        public void HideTBTN10()
        {
            this.tbtn10.Visible = false;
        }
        /// <summary>
        /// BTN 10 Enable.
        /// </summary>
        public void EnableTBTN10()
        {
            this.tbtn10.Enabled = true;
        }
        /// <summary>
        /// BTN 10 Disable.
        /// </summary>
        public void DisableTBTN10()
        {
            this.tbtn10.Enabled = false;
        }
        #endregion

        private void ToolBarChild_Paint(object sender, PaintEventArgs e)
        {
        }

        private void MDIDIALOG2_Validating(object sender, CancelEventArgs e)
        {
            //Invalidate();
        }

        private void ToolBarChild_Validating(object sender, CancelEventArgs e)
        {
            
        }

        private void ToolBarChild_VisibleChanged(object sender, EventArgs e)
        {
            //ToolBarChild.Invalidate();
        }

        private void tbtn1_VisibleChanged(object sender, EventArgs e)
        {
            tbtn1.Refresh();
            tbtn2.Refresh();
            tbtn3.Refresh();
        }

        private void tbtn2_VisibleChanged(object sender, EventArgs e)
        {
            tbtn1.Refresh();
            tbtn2.Refresh();
            tbtn3.Refresh();
        }

        private void tbtn3_VisibleChanged(object sender, EventArgs e)
        {
            tbtn1.Refresh();
            tbtn2.Refresh();
            tbtn3.Refresh();
        }

    }
}